PATH 
Mac OS 8 and 9 Developer Documentation > Text and Other International Services > Apple Type Services for Unicode Imaging (ATSUI) > Apple Type Services for Unicode Imaging Reference

     

ATSUFontIDtoFOND

Finds the font family number corresponding to an ATSUI font ID.

OSStatus ATSUFontIDtoFOND (
                     ATSUFontID iFontID,
                     short *oFONDNumber,
                     Style *oFONDStyle);
iFontID
A value of type ATSUFontID. Pass the ID of the font whose font family number you want to obtain.

oFONDNumber
A pointer to a value of type short. On return, the font family number corresponding to the specified font ID. You cannot pass NULL for this parameter.

oFONDStyle
A pointer to a value of type Style. On return, the font family style, if it exists, corresponding to the specified font ID. You cannot pass NULL for this parameter.

function result
A result code. See Result Codes. If the font does not correspond to an installed font, ATSUFontIDtoFOND passes back kATSUInvalidFontID in the oFONDNumber parameter and returns the result code kATSUInvalidFontErr. If you the font is incompatible with ATSUI, ATSUFONDtoFontID passes back kATSUInvalidFontID in the oFONDNumber parameter and returns the result code kATSUNoCorrespondingFontErr.
DISCUSSION
Font family numbers were used by QuickDraw to represent fonts to the Font Manager. Some fonts may correspond to a font ID, but not be compatible with ATSUI. For a list of fonts that are not compatible with ATSUI, see the discussion for ATSUFontCount.

ATSUI assigns font IDs at run-time. As a result, font IDs can change across installs.

VERSION NOTES
Available beginning with ATSUI 1.0.


© 2000 Apple Computer, Inc. – (Last Updated 25 Jan 00)